package cn.huifu.management.controller;

import cn.huifu.management.mapper.NewsReleaseMapper;
import cn.huifu.management.pojo.entiry.NewsRelease;
import cn.huifu.management.pojo.vo.NewsReleaseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/newsrelease")
public class NewsReleaseController {
    @Autowired(required = false)
    NewsReleaseMapper mapper;
    @RequestMapping("/selectIndex")
    public List<NewsReleaseVO> selectIndex(){
        return mapper.selectIndex();
    }
}
